package com.zyplayer.dubbo.service.impl;


import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.fastjson.JSON;
import com.zyplayer.dubbo.service.AnnotateService;
import com.zyplayer.dubbo.service.AnnotateVo;

@Service(version = "${dubbo.service.version}", group = "xxx")
public class AnnotateServiceImpl implements AnnotateService {
	
	@Override
	public String get() {
		return "hello world";
	}
	
	@Override
	public String paramType(AnnotateVo vo) {
		return JSON.toJSONString(vo) + " -- 已收到";
	}
	
	@Override
	public String hello(String name, String key) {
		return name + key + " -- 已收到";
	}
	
	@Override
	public AnnotateVo say(String name) {
		AnnotateVo annotateVo = new AnnotateVo();
		annotateVo.setSay("你好啊！");
		return annotateVo;
	}
}
